package com.ta.stage.server;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ta.stage.bus.DeptViewDao;
import com.ta.stage.dao.DeptDao;
import com.ta.stage.entity.Dept;
import com.ta.stage.view.DeptView;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DeptSpecificServer extends ServiceImpl<DeptViewDao, DeptView> {
    //如果需要调用deptDao直接引用就可以
    @Autowired
    DeptDao deptDao;
    //查询数据
    public Dept getDept(){
        return deptDao.selectById(2);
    }
}
